home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / FFT / SINEWAVE.HLP < prev    next >
Text File  |  1990-01-17  |  1KB  |  32 lines

  1.          Name: SINEWAVE.ASM
  2.          Type: Assembler Macro
  3.       Version: 1.1
  4.  Date Revised: 25-Nov-86
  5.  
  6.   Description: Full-Cycle Sinewave Table Generator Macro
  7.  
  8.  This macro generates a full-cycle sinewave lookup table for FFT's,
  9.  precision waveform generation and modulation/demodulation functions.
  10.  The macro creates a full-cycle (360 degrees) of the sine waveform
  11.  of any size in any memory space.  If the SINEWAVE macro is called
  12.  for a table of 256 points at addresses y:$100-$1FF, the table values
  13.  will be identical to those found in the DSP56001 Y Data ROM.  Thus
  14.  the SINEWAVE macro can be used to simulate the contents of the
  15.  DSP56001 Y Data ROM.
  16.  
  17.  Note that the assembler transcendental functions are used to
  18.  calculate the sinewave value, which has a range of -1.0 to +1.0.
  19.  The particular rounding used minimizes the total harmonic distortion
  20.  (THD) of the waveform.  Since the resulting conversion to a fractional
  21.  number, f, may be outside the available range -1.0 =< f < +1.0, an
  22.  assembler warning message will appear when the sine(90 degrees) is
  23.  calculated.
  24.  
  25.  WARNING - Floating point value outside fractional domain
  26.  
  27.  This warning can be ignored and the assembler will substitute the
  28.  maximum positive ($7FFFFF) fractional data value.
  29.  
  30.  The SINEWAVE macro can be used with the FFTR2D FFT macro to perform
  31.  complex FFT's up to 32768 points and real FFT's up to 65536 points.
  32.